<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>popot-2.01: popot::PSO::algorithm::Base Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">popot-2.01
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacepopot.html">popot</a>      </li>
      <li class="navelem"><a class="el" href="namespacepopot_1_1PSO.html">PSO</a>      </li>
      <li class="navelem"><a class="el" href="namespacepopot_1_1PSO_1_1algorithm.html">algorithm</a>      </li>
      <li class="navelem"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html">Base</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">popot::PSO::algorithm::Base Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="popot::PSO::algorithm::Base" -->
<p><code>#include &lt;<a class="el" href="algorithm_8h_source.html">algorithm.h</a>&gt;</code></p>

<p><a href="classpopot_1_1PSO_1_1algorithm_1_1Base-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef PARTICLE::BestType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a5978e3e9cb0950005553f918b74fca1e">BestType</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef PARTICLE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a57c8a169aa186e360c3cfa4b17256c5a">ParticleType</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef PARTICLE::NeighborhoodType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a8cec67cf20336c23376781d978512ee0">NeighborhoodType</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a65b024eeac9172444517a5047a720e7a">Base</a> (size_t swarm_size, size_t dimension, const LBOUND_FUNC &amp;lbound, const UBOUND_FUNC &amp;ubound, const STOP_CRITERIA &amp;stop, const COST_FUNCTION &amp;cost_function, const TOPOLOGY topology, const UPDATE_POSITION_RULE update_position_rule, const UPDATE_VELOCITY_RULE update_velocity_rule, const UPDATE_BEST_POSITION_RULE update_best_position_rule, const CONFINE_FUNCTION confine_function, const INIT_POSITION_FUNCTION init_position_function, const INIT_VELOCITY_FUNCTION init_velocity_function, const PARTICLE &amp;p, <a class="el" href="namespacepopot_1_1PSO_1_1algorithm.html#a1807a99f98f02dd70a74ab24d56f0953">EvaluationMode</a> evaluation_mode, bool reevaluate_best_before_updating)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a16c72608dde4c6b73e217aed5764107a">~Base</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a3febcc9ffbd2a08c347daabdfd2b5376">getSize</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a24406f51e52d2998ac7e72e2ea20a66f">step</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#aca006aec778bf415b039c1bdf82348d7">getEpoch</a> (void) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a2a5b67424882791f4e3b796af18744df">run</a> (int verbose=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a5978e3e9cb0950005553f918b74fca1e">BestType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a8c06869ad52898ed1e642e885a7f5bee">getBest</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#abc3b2f3552404e3720c42090293b5b16">getBestFitness</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::vector&lt; PARTICLE &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a959897e520c4ce594bdd852a722d0c98">getParticles</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#ad800bca76087c5061a127366208a82e6">print</a> (int mode=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::map&lt; size_t, std::vector<br class="typebreak"/>
&lt; size_t &gt; &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#aee12625839c296a56622409e0bd33174">getNeighborhoodMembership</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a577345bb0be54f25327e64d9e4672a2f">generateGraph</a> (std::string filename)</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#aff83ae446028e1d606a380820b7d5905">epoch</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a11b0e3151a628da364012bcf546ca560">nb_new_neigh</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Standard particle swarm optimization </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">PARTICLE</td><td>The particle type you want to use, e.g. swarm::particle::TraditionalParticle </td></tr>
    <tr><td class="paramname">TOPOLOGY</td><td>Defines the topology, e.g. swarm::topology::VonNeuman </td></tr>
    <tr><td class="paramname">STOP_CRITERIA</td><td>Defines the condition to stop the evolution of the swarm </td></tr>
  </table>
  </dd>
</dl>
</div><hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a5978e3e9cb0950005553f918b74fca1e"></a><!-- doxytag: member="popot::PSO::algorithm::Base::BestType" ref="a5978e3e9cb0950005553f918b74fca1e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef PARTICLE::BestType <a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a5978e3e9cb0950005553f918b74fca1e">popot::PSO::algorithm::Base::BestType</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8cec67cf20336c23376781d978512ee0"></a><!-- doxytag: member="popot::PSO::algorithm::Base::NeighborhoodType" ref="a8cec67cf20336c23376781d978512ee0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef PARTICLE::NeighborhoodType <a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a8cec67cf20336c23376781d978512ee0">popot::PSO::algorithm::Base::NeighborhoodType</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a57c8a169aa186e360c3cfa4b17256c5a"></a><!-- doxytag: member="popot::PSO::algorithm::Base::ParticleType" ref="a57c8a169aa186e360c3cfa4b17256c5a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef PARTICLE <a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a57c8a169aa186e360c3cfa4b17256c5a">popot::PSO::algorithm::Base::ParticleType</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a65b024eeac9172444517a5047a720e7a"></a><!-- doxytag: member="popot::PSO::algorithm::Base::Base" ref="a65b024eeac9172444517a5047a720e7a" args="(size_t swarm_size, size_t dimension, const LBOUND_FUNC &amp;lbound, const UBOUND_FUNC &amp;ubound, const STOP_CRITERIA &amp;stop, const COST_FUNCTION &amp;cost_function, const TOPOLOGY topology, const UPDATE_POSITION_RULE update_position_rule, const UPDATE_VELOCITY_RULE update_velocity_rule, const UPDATE_BEST_POSITION_RULE update_best_position_rule, const CONFINE_FUNCTION confine_function, const INIT_POSITION_FUNCTION init_position_function, const INIT_VELOCITY_FUNCTION init_velocity_function, const PARTICLE &amp;p, EvaluationMode evaluation_mode, bool reevaluate_best_before_updating)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">popot::PSO::algorithm::Base::Base </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>swarm_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>dimension</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const LBOUND_FUNC &amp;&#160;</td>
          <td class="paramname"><em>lbound</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UBOUND_FUNC &amp;&#160;</td>
          <td class="paramname"><em>ubound</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const STOP_CRITERIA &amp;&#160;</td>
          <td class="paramname"><em>stop</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const COST_FUNCTION &amp;&#160;</td>
          <td class="paramname"><em>cost_function</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const TOPOLOGY&#160;</td>
          <td class="paramname"><em>topology</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UPDATE_POSITION_RULE&#160;</td>
          <td class="paramname"><em>update_position_rule</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UPDATE_VELOCITY_RULE&#160;</td>
          <td class="paramname"><em>update_velocity_rule</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const UPDATE_BEST_POSITION_RULE&#160;</td>
          <td class="paramname"><em>update_best_position_rule</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const CONFINE_FUNCTION&#160;</td>
          <td class="paramname"><em>confine_function</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const INIT_POSITION_FUNCTION&#160;</td>
          <td class="paramname"><em>init_position_function</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const INIT_VELOCITY_FUNCTION&#160;</td>
          <td class="paramname"><em>init_velocity_function</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const PARTICLE &amp;&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacepopot_1_1PSO_1_1algorithm.html#a1807a99f98f02dd70a74ab24d56f0953">EvaluationMode</a>&#160;</td>
          <td class="paramname"><em>evaluation_mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>reevaluate_best_before_updating</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a16c72608dde4c6b73e217aed5764107a"></a><!-- doxytag: member="popot::PSO::algorithm::Base::~Base" ref="a16c72608dde4c6b73e217aed5764107a" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual popot::PSO::algorithm::Base::~Base </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a577345bb0be54f25327e64d9e4672a2f"></a><!-- doxytag: member="popot::PSO::algorithm::Base::generateGraph" ref="a577345bb0be54f25327e64d9e4672a2f" args="(std::string filename)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void popot::PSO::algorithm::Base::generateGraph </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Generate a graph of the connections between the particles using DOT </p>

</div>
</div>
<a class="anchor" id="a8c06869ad52898ed1e642e885a7f5bee"></a><!-- doxytag: member="popot::PSO::algorithm::Base::getBest" ref="a8c06869ad52898ed1e642e885a7f5bee" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a5978e3e9cb0950005553f918b74fca1e">BestType</a>&amp; popot::PSO::algorithm::Base::getBest </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the current best particle of the whole swarm (best of the personal best) </p>

</div>
</div>
<a class="anchor" id="abc3b2f3552404e3720c42090293b5b16"></a><!-- doxytag: member="popot::PSO::algorithm::Base::getBestFitness" ref="abc3b2f3552404e3720c42090293b5b16" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double popot::PSO::algorithm::Base::getBestFitness </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the fitness of the best individual (Required for benchmarking) </p>

</div>
</div>
<a class="anchor" id="aca006aec778bf415b039c1bdf82348d7"></a><!-- doxytag: member="popot::PSO::algorithm::Base::getEpoch" ref="aca006aec778bf415b039c1bdf82348d7" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t popot::PSO::algorithm::Base::getEpoch </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Current epoch </p>

</div>
</div>
<a class="anchor" id="aee12625839c296a56622409e0bd33174"></a><!-- doxytag: member="popot::PSO::algorithm::Base::getNeighborhoodMembership" ref="aee12625839c296a56622409e0bd33174" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::map&lt; size_t , std::vector&lt;size_t&gt; &gt;&amp; popot::PSO::algorithm::Base::getNeighborhoodMembership </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a959897e520c4ce594bdd852a722d0c98"></a><!-- doxytag: member="popot::PSO::algorithm::Base::getParticles" ref="a959897e520c4ce594bdd852a722d0c98" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;PARTICLE&gt;&amp; popot::PSO::algorithm::Base::getParticles </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a reference to the vector of particles </p>

</div>
</div>
<a class="anchor" id="a3febcc9ffbd2a08c347daabdfd2b5376"></a><!-- doxytag: member="popot::PSO::algorithm::Base::getSize" ref="a3febcc9ffbd2a08c347daabdfd2b5376" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t popot::PSO::algorithm::Base::getSize </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the size of the swarm </p>

</div>
</div>
<a class="anchor" id="ad800bca76087c5061a127366208a82e6"></a><!-- doxytag: member="popot::PSO::algorithm::Base::print" ref="ad800bca76087c5061a127366208a82e6" args="(int mode=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void popot::PSO::algorithm::Base::print </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>mode</em> = <code>0</code></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Print in the console the status of the swarm </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">mode</td><td>0 displays all the particles, 1 display only the best </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2a5b67424882791f4e3b796af18744df"></a><!-- doxytag: member="popot::PSO::algorithm::Base::run" ref="a2a5b67424882791f4e3b796af18744df" args="(int verbose=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void popot::PSO::algorithm::Base::run </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>verbose</em> = <code>0</code></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Run until stop criteria is met. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">verbose</td><td>set it to 1 to print the best fitness at each iteration </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a24406f51e52d2998ac7e72e2ea20a66f"></a><!-- doxytag: member="popot::PSO::algorithm::Base::step" ref="a24406f51e52d2998ac7e72e2ea20a66f" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double popot::PSO::algorithm::Base::step </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>One step of the swarm </p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="aff83ae446028e1d606a380820b7d5905"></a><!-- doxytag: member="popot::PSO::algorithm::Base::epoch" ref="aff83ae446028e1d606a380820b7d5905" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#aff83ae446028e1d606a380820b7d5905">popot::PSO::algorithm::Base::epoch</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a11b0e3151a628da364012bcf546ca560"></a><!-- doxytag: member="popot::PSO::algorithm::Base::nb_new_neigh" ref="a11b0e3151a628da364012bcf546ca560" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classpopot_1_1PSO_1_1algorithm_1_1Base.html#a11b0e3151a628da364012bcf546ca560">popot::PSO::algorithm::Base::nb_new_neigh</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/opt/GoogleCode/popot/trunk/popot-2.01/src/<a class="el" href="algorithm_8h_source.html">algorithm.h</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5
</small></address>

</body>
</html>
